<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

/* Admin */
$route['default_controller'] = "auth";
$route['404_override'] = '';

$route['auth'] = 'auth';
$route['auth/login'] = 'auth/login';
$route['auth/logout'] = 'auth/logout';

$route['users'] = 'users';
$route['users/create'] = 'users/create';
$route['users/(:num)'] = 'users/edit/$1';
$route['users/save'] = 'users/save';
$route['users/save_password'] = 'users/save_password';
$route['users/delete/(:num)'] = 'users/delete/$1';
$route['users/change/(:num)'] = 'users/change/$1';

$route['module'] = 'module';
$route['module/create'] = 'module/create';
$route['module/(:num)'] = 'module/edit/$1';
$route['module/save'] = 'module/save';

$route['group'] = 'group';
$route['group/create'] = 'group/create';
$route['group/(:num)'] = 'group/edit/$1';
$route['group/save'] = 'group/save';
$route['group/delete/(:num)'] = 'group/delete/$1';

$route['assign'] = 'assign';
$route['assign/create'] = 'assign/create';
$route['assign/(:num)'] = 'assign/edit/$1';
$route['assign/save'] = 'assign/save';
$route['assign/delete/(:num)'] = 'assign/delete/$1';

$route['location'] = 'location';
$route['location/(:num)'] = 'location/index/$1';
$route['location/create'] = 'location/create';
$route['location/edit/(:num)'] = 'location/edit/$1';
$route['location/save'] = 'location/save';
$route['location/delete/(:num)'] = 'location/delete/$1';
$route['location/get_city'] = 'location/get_city';
$route['location/get_district'] = 'location/get_district';

$route['kiosk'] = 'kiosk';
$route['kiosk/(:num)'] = 'kiosk/index/$1';
$route['kiosk/create'] = 'kiosk/create';
$route['kiosk/edit/(:num)'] = 'kiosk/edit/$1';
$route['kiosk/save'] = 'kiosk/save';
$route['kiosk/delete/(:num)'] = 'kiosk/delete/$1';
$route['kiosk/search/(:any)'] = 'kiosk/search/$1';
$route['kiosk/search/(:any)/(:any)'] = 'kiosk/search/$1/$2';

$route['ads'] = 'ads';
$route['ads/create'] = 'ads/create';
$route['ads/(:num)'] = 'ads/edit/$1';
$route['ads/save'] = 'ads/save';
$route['ads/delete/(:num)'] = 'ads/delete/$1';
$route['ads/assign'] = 'ads/assign';
$route['ads/assign/(:num)'] = 'ads/assign/$1';
$route['ads/assign_list/(:num)'] = 'ads/assign_list/$1';
$route['ads/assign_edit/(:num)/(:num)'] = 'ads/assign_edit/$1/$2';
$route['ads/assign_save/(:num)'] = 'ads/assign_save/$1';
$route['ads/broadcast'] = 'ads/broadcast';
$route['ads/broadcast_create'] = 'ads/broadcast_create';
$route['ads/broadcast_save'] = 'ads/broadcast_save';
$route['ads/broadcast_edit/(:num)'] = 'ads/broadcast_edit/$1';
$route['ads/broadcast_delete/(:num)'] = 'ads/broadcast_delete/$1';

$route['fund'] = 'fund';
$route['fund/create'] = 'fund/create';
$route['fund/(:num)'] = 'fund/index/$1';
$route['fund/save'] = 'fund/save';
$route['fund/delete/(:num)'] = 'fund/delete/$1';
$route['fund/filter/(:num)'] = 'fund/filter/$1';
$route['fund/filter/(:num)/(:num)'] = 'fund/filter/$1/$2';

$route['firmware'] = 'firmware';
$route['fimrware/create'] = 'firmware/create'; 
$route['fimrware/save'] = 'firmware/save'; 
$route['fimrware/dowload/(:any)'] = 'firmware/download/$1';
$route['fimrware/delete/(:any)']  = 'firmware/delete/$1';

$route['trivia'] = 'trivia';
$route['trivia/(:num)'] = 'trivia/index/$1';
$route['trivia/create'] = 'trivia/create';
$route['trivia/edit/(:num)'] = 'trivia/edit/$1';
$route['trivia/save'] = 'trivia/save';
$route['trivia/assign'] = 'trivia/assign';
$route['trivia/save_assign'] = 'trivia/save_assign';
$route['trivia/get_question'] = 'trivia/get_question';
$route['trivia/delete/(:num)'] = 'trivia/delete/$1';
$route['trivia/search/(:any)'] = 'trivia/search/$1';
$route['trivia/search/(:any)/(:any)'] = 'trivia/search/$1/$2';

$route['question'] = 'question';
$route['question/(:num)'] = 'question/index/$1';
$route['question/create'] = 'question/create';
$route['question/edit/(:num)'] = 'question/edit/$1';
$route['question/save'] = 'question/save';
$route['question/delete/(:num)'] = 'question/delete/$1';
$route['question/search/(:any)'] = 'question/search/$1';
$route['question/search/(:any)/(:any)'] = 'question/search/$1/$2';

$route['answer'] = 'answer';
$route['answer/(:num)'] = 'answer/index/$1';
$route['answer/(:num)/(:num)'] = 'answer/index/$1/$2';
$route['answer/create'] = 'answer/create';
$route['answer/edit/(:num)'] = 'answer/edit/$1';
$route['answer/save'] = 'answer/save';
$route['answer/delete/(:num)'] = 'answer/delete/$1';
$route['answer/search/(:any)'] = 'answer/search/$1';
$route['answer/search/(:any)/(:any)'] = 'answer/search/$1/$2';

$route['city'] = 'city';
$route['city/(:num)'] = 'city/index/$1';
$route['city/create'] = 'city/create';
$route['city/edit/(:num)'] = 'city/edit/$1';
$route['city/save'] = 'city/save';
$route['city/delete/(:num)'] = 'city/delete/$1';
$route['city/search/(:any)'] = 'city/search/$1';
$route['city/search/(:any)/(:any)'] = 'city/search/$1/$2';

$route['country'] = 'country';
$route['country/(:num)'] = 'country/index/$1';
$route['country/create'] = 'country/create';
$route['country/edit/(:num)'] = 'country/edit/$1';
$route['country/save'] = 'country/save';
$route['country/delete/(:num)'] = 'country/delete/$1';
$route['country/search/(:any)'] = 'country/search/$1';
$route['country/search/(:any)/(:any)'] = 'country/search/$1/$2';

$route['district'] = 'district';
$route['district/(:num)'] = 'district/index/$1';
$route['district/(:num)/(:num)'] = 'district/index/$1/$2';
$route['district/create'] = 'district/create';
$route['district/edit/(:num)'] = 'district/edit/$1';
$route['district/save'] = 'district/save';
$route['district/delete/(:num)'] = 'district/delete/$1';
$route['district/search/(:any)'] = 'district/search/$1';
$route['district/search/(:any)/(:any)'] = 'district/search/$1/$2';

/* API */
$route['func/update_kiosh'] = 'func/update_kiosh';
$route['func/show_total_donate'] = 'func/show_total_donate';
$route['func/get_latest_firmware'] = 'func/get_latest_firmware';
$route['func/download/(:any)'] = 'func/download/$1';

$route['home'] = 'home';


/* End of file routes.php */
/* Location: ./application/config/routes.php */